package com.wei.chatroom.model;

import org.apache.ibatis.annotations.Mapper;

/**
 * @projectName: chatroom
 * @package: com.wei.chatroom.model
 * @className: UserMapper
 * @author: weiJiang
 * @description: 数据库操作接口
 * @date: 2025/9/18 下午1:56
 * @version: 1.0
 */

@Mapper
public interface UserMapper {
    //把用户插入到数据库中，注册
    Integer insert(User user);

    //根据用户名查询，登录
    User selectByName(String username);
}
